package org.example.ch01.p01;

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        while (sc.hasNextLine()) {
             String line= sc.nextLine().trim();
             if (line.isEmpty()){
                 continue;
             }
             String[]parts= line.split(" \\s+");
             int a= Integer.parseInt(parts[0]);
             int b= Integer.parseInt(parts[1]);
             if (Math.abs(a)> 1000){
                 System.out.println("|a|>1000");
             }else{
                 System.out.println(a+b);
             }
        }
        sc.close();
    }
}
